# 装饰器
def decorator(fn):
    def inner():
        print('正在计算')
        return fn()
    return inner

# 定义两个数相加
@decorator
def add():
    return 1 + 3

if __name__ == '__main__':
    print(add())